//
//  QueryWithDrawOperation.m
//  PlayBall
//
//  Created by Huawen Liu on 12-6-26.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryWithDrawOperation.h"

@implementation JddQueryWithDrawOperation

@synthesize Money;
@synthesize pwd;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder queryWithDrawOfMoney:self.Money 
                                                        pwd:self.pwd];
    
    NSData *dataLotteryIssue = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryWithDrawOperationResult:) withObject:dataLotteryIssue waitUntilDone:NO];                    
}

@end
